package com.mycity.bean;

import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

public class Post {
	
	private int userId;
	
	private int postId;
	
	private int postType;
	
	private String postDate;
	
	private String postContent;
	
	private String tags;
	
	private int locationId;
	
	private String locationName;

	public String getLocationName() {
		return locationName;
	}

	public void setLocationName(String locationName) {
		this.locationName = locationName;
	}

	public int getLocationId() {
		return locationId;
	}

	public void setLocationId(int locationId) {
		this.locationId = locationId;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getPostId() {
		return postId;
	}

	public void setPostId(int postId) {
		this.postId = postId;
	}

	public int getPostType() {
		return postType;
	}

	public void setPostType(int postType) {
		this.postType = postType;
	}

	public String getPostDate() {
		return postDate;
	}

	public void setPostDate(String postDate) {
		this.postDate = postDate;
	}

	public String getPostContent() {
		return postContent;
	}

	public void setPostContent(String postContent) {
		this.postContent = postContent;
	}
	

    @JsonCreator
	public Post(@JsonProperty("userId") int userId, @JsonProperty("postType")  int postType, @JsonProperty("postDate") String postDate, @JsonProperty("postId") int postId,
			@JsonProperty("postContent") String postContent, @JsonProperty("tags") String tags, @JsonProperty("tags") int locationId, @JsonProperty("locationName") String locationName){
		this.postId = postId;
		this.postType = postType;
		this.postContent = postContent;
		this.postDate = postDate;
		this.userId = userId;
		this.tags = tags;
		this.locationId = locationId;
		this.locationName = locationName;
	}
    
	/**
     * Empty Constructor. Needed for JAXB.
     */
	public Post(){
		
	}
}
